<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
				<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="myApp">
			 {{myMoney}}
			  {{myTime}}
		</div>
	</body>
	<script>
	     new Vue({
			  el:'#myApp',
			  data:{
				  money:"30",
				  time:new Date()
			  },
			  computed:{//计算属性
				  myMoney:function(){
					  return this.money+"$";
				  },
				  myTime:function(){
					  var date = new Date();
					  return date.getFullYear()+"年"+(date.getMonth()+1)+"月"+date.getDate()
				  }
			  }
		 })
	</script>
</html>
